Count Occurrence Of Unique List Items
(13 actions, 9 KB)
0 Dictionary »
1 Set Variable
dict
to
[0 Dictionary]
2 Repeat with Each in
[Shortcut Input]
3 Get Dictionary Value for
[Repeat Item]
in
[dict]
»
4
7
4 If
[3 Dictionary Value]
does not have any value
ConditionalActionString
:
[Repeat Item]
5 Set Dictionary Value for
[Repeat Item]
to
1
in
[dict]
6 Otherwise
7 Calculate
[3 Dictionary Value]
+
1
»
8 Set Dictionary Value for
[Repeat Item]
to
[7 Calculation Result]
in
[dict]
9 End If »
10 Set Variable
dict
to
[9 If Result]
11 End Repeat with Each ▵
2
12 Stop and Output
[dict]